package com.hissy.common.design.create.factory;

/**
 * Created by zhangyanfei on 2019/4/2.
 *
 * @author zhangyanfei
 * @date 2019/04/02
 */
public class PersonA extends AbstractPerson {
    @Override
    public boolean accept(String tag) {
        return "A".equalsIgnoreCase(tag);
    }

    /**
     * 可以是创建一个对象 或者执行一个动作
     */
    public void doSomething() {
        System.out.println("create PersonA or doSomething about A");
    }
}
